<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// FUNCTIONALITY
// This file processes action_params

// CHANGE NOTES
// 11/30/09
// First implementation

// Copying Action_Params to vars
// Remove leading and trailing spaces
// If required is missing, output an error
// If multiple errors, they will step on each other, but not worried about it

If: (Action_Param:'Error') != '';
	Var:'vError' = (Action_Param:'Error');
/If;
If: (Action_Param:'Option') != '';
	Var:'vOption' = (Action_Param:'Option');
/If;

// Pass a param "New" through the URL to indicate it is a new page
Var:'vNew' = (Action_Param:'New');

Var:'vProcess' = (Action_Param:'Process');

Var:'vID' = (Action_Param:'ID');
Var:'vFirst_Name' = (Action_Param:'First_Name');
Var:'vLast_Name' = (Action_Param:'Last_Name');
Var:'vPost_Name1' = (Action_Param:'Post_Name1');
Var:'vPost_Name2' = (Action_Param:'Post_Name2');
Var:'vPost_Name3' = (Action_Param:'Post_Name3');
Var:'vPost_Name4' = (Action_Param:'Post_Name4');
Var:'vPost_Name5' = (Action_Param:'Post_Name5');
Var:'vPass' = (Action_Param:'Pass');
Var:'vMail' = (Action_Param:'Mail');
Var:'vFav_Crag' = (Action_Param:'Fav_Crag');
Var:'vAddress' = (Action_Param:'Address');
Var:'vCity' = (Action_Param:'City');
Var:'vState' = (Action_Param:'State');
Var:'vZip' = (Action_Param:'Zip');
Var:'vPhone' = (Action_Param:'Phone');
Var:'vFav_URL' = (Action_Param:'Fav_URL');
Var:'vCountry' = (Action_Param:'Country');
Var:'vSex' = (Action_Param:'Sex');
Var:'vYear_Born' = (Action_Param:'Year_Born');
Var:'vType' = (Action_Param:'Type');
Var:'vAbility' = (Action_Param:'Ability');
Var:'vAchieve' = (Action_Param:'Achieve');
Var:'vStatement' = (Action_Param:'Statement');
Var:'vEmail_Forum1' = (Action_Param:'Email_Forum1');
Var:'vEmail_Forum2' = (Action_Param:'Email_Forum2');
Var:'vEmail_Forum3' = (Action_Param:'Email_Forum3');
Var:'vEmail_Forum4' = (Action_Param:'Email_Forum4');
Var:'vEmail_Forum5' = (Action_Param:'Email_Forum5');
Var:'vEmail_Forum6' = (Action_Param:'Email_Forum6');
Var:'vEmail_Forum7' = (Action_Param:'Email_Forum7');
Var:'vEmail_Forum8' = (Action_Param:'Email_Forum8');
Var:'vEmail_Forum9' = (Action_Param:'Email_Forum9');
Var:'vEmail_Forum10' = (Action_Param:'Email_Forum10');
Var:'vEmail_Forum11' = (Action_Param:'Email_Forum11');
Var:'vEmail_Forum12' = (Action_Param:'Email_Forum12');
Var:'vAllow' = (Action_Param:'Allow');
Var:'DupPostName1' = string;
Var:'DupPostName2' = string;
Var:'DupPostName3' = string;
Var:'DupPostName4' = string;
Var:'DupPostName5' = string;

// If required is missing, output error 1001 "Required Missing"
// NOT checking this for Admin pages
?>